<?php
include_once('Controller\FzXmlController.php');
class FzXmlControllerTest extends \Enhance\TestFixture
{
        private $target;

        public function setUp()
        {
                $this->target = \Enhance\Core::getCodeCoverageWrapper('FzXmlController');
        }
		
        
        // Sets the different types of news, if correct retrived variable will not be null
	    public function setCorrectQuerystringTest()
	    {
	    	$_GET['type'] = "";
	    	$test0 = $this->target->DoControll();
	    	$test0 = $test0->GetXhtml();
	    	
	    	$_GET['type'] = "all";
	    	$test1 = $this->target->DoControll();
	    	$test1 = $test1->GetXhtml();
	    	
	    	$_GET['type'] = "pc";
	    	$test2 = $this->target->DoControll();
	    	$test2 = $test2->GetXhtml();
	    	
	    	$_GET['type'] = "console";
	    	$test3 = $this->target->DoControll();    	
	    	$test3 = $test3->GetXhtml();
	    	
	    	\Enhance\Assert::areIdentical("",$test0);
	    	\Enhance\Assert::isNotNull($test1);
	    	\Enhance\Assert::isNotNull($test2);
	    	\Enhance\Assert::isNotNull($test3);
	    }
}